<div *ngIf="hero">
    <h2>{{hero.name | uppercase}} Details</h2>
    <div>id: {{hero.id}}</div>
    <div>
        <label for="name">Hero name:</label>
        <input id="name" type="text" [(ngModel)]="hero.name">
    </div>
</div>

<button type="button" (click)="goBack()">go back</button>